﻿using DAL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public  class BasepurchaseBillBLL
    {
        private BasepurchaseBillDAL dal;
        public BasepurchaseBillBLL()
        {
            dal = new BasepurchaseBillDAL();
        }
        public List<string> FindPurchaseBillIDByClerk(string clerk)
        {
            return dal.FindPurchaseBillIDByClerk(clerk);
        }
        public List <string > FindPurchaseBillIDByPurchaseBillID(string pid)
        {
            return dal.FindPurchaseBillIDByPurchaseBillID(pid);
        }
        public List<string> FindPurchaseBillIDByOnprocess(int  onprocess)
        {
            return dal.FindPurchaseBillIDByOnprocess(onprocess);
        }
        public List<string> FindPurchaseBillIDByPurchaseDate(DateTime StartDate, DateTime EndDat)
        {
            return dal.FindPurchaseBillIDByPurchaseDate( StartDate,  EndDat);
        }
        public List<string> FindPurchaseBillIDByExaminer(string examiner)
        {
            return dal.FindPurchaseBillIDByExaminer(examiner);
        }
        public PurchaseBill FindDateilPurchaseBillByPurchaseID(string pid)
        {
            return dal.FindDateilPurchaseBillByPurchaseID(pid);
        }
        public PurchaseBill FindPurchaseBillByPurchaseID(string pid, List<PurchaseDateil> Dateillist)
        {
            return dal.FindPurchaseBillByPurchaseID(pid, Dateillist);
        }



    }
}
